﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Djs.Games.DeskGame.GameComponents;
using Djs.Games.DeskGame.GameDefinitions;

namespace Djs.Games.DeskGame.Forms
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            this.InitArea();
        }
        private void InitArea()
        {
        }
        private void SetGameClick(object sender, EventArgs e)
        {
            Control control = sender as Control;
            if (control != null)
                this.GameArea.GameDefinition = Game.GetGameDefinition(control.Tag as string);
        }
        private void _CloseClick(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
